home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 31 lines | [TEXT/GEOL] |
- Item 9081670 24-Jan-91 18:58PST
-
- From: ALGER Alger, Jeff,VCA
-
- To: MACAPP.TECH$ MacApp Technical
-
- ------------------------------------------------------------------------------
-
- Sub: Re: TDocument subclass menu
-
- Karam,
-
- You might want to look over the MacApp.Tech$ traffic from summer of '89 in back
- issues of Frameworks or in the archives. There was quite a bit of discussion
- on documents and databases back then, much of it spirited. As to your specific
- problem of your document not being in the event chain, that is due to a
- fundamental architectural decision in the construction of MacApp. The
- frontmost window establishes the context of events such as mouse clicks. The
- document only receives these events if the frontmost window keeps its hands
- off. No frontmost window, no dispatch to a document, since MacApp doesn't know
- WHICH document should apply. You should also be aware that closing the last
- window of a document frees the document in the default behavior. Both of these
- should lead you to consider creating some window to represent the database
- document as a whole, even if it contains trivial information. For a good
- example, take a look at the Think C and Pascal environments, which use a
- Project window this way.
-
- Regards,
- Jeff Alger
-
-